package com.example.smartcity.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ListView;

import com.example.smartcity.R;

public class GarbageClassificationActivity extends AppCompatActivity {
    private LinearLayout checkgarbage;
    private LinearLayout garbagenews;
    private LinearLayout garbageasks;
    private Intent intent = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_garbage_classification);
        checkgarbage = findViewById(R.id.checkgarbage);
        garbagenews = findViewById(R.id.garbagenews);
        checkgarbage.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                intent = new Intent(GarbageClassificationActivity.this, CheckGarbageActivity.class);
                startActivity(intent);
                finish();
            }
        });

        garbagenews.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                intent = new Intent(GarbageClassificationActivity.this, GarbageNewsActivity.class);
                startActivity(intent);
                finish();
            }
        });


    }
}